package cn.dakaqi.web.util.vo.response;

import cn.dakaqi.entities.VolunteerInsurance;
import cn.dakaqi.web.vo.GroupVO;
import cn.dakaqi.web.vo.VolunteerVO;
import lombok.Data;

import java.util.List;

/**
 * @author beliveli on 2016/5/5
 */
@Data
public class MemberInfoVo
{

    private VolunteerVO volunteerVO;
    private VolunteerInsurance insurance;
    private List<GroupVO> groups;


    public static MemberInfoVo build(VolunteerVO volunteer, VolunteerInsurance insurance, List<GroupVO> groups)
    {
        MemberInfoVo memberInfoVo = new MemberInfoVo();
        memberInfoVo.setGroups(groups);
        memberInfoVo.setInsurance(insurance);
        memberInfoVo.setVolunteerVO(volunteer);
        return memberInfoVo;
    }
}
